package com.mano.mall;

import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.elasticsearch.repository.config.EnableElasticsearchRepositories;

/**
 * @Author: zj
 * @Description:
 * @Date: Created in 16:14 2020/10/15
 * @Modified By:
 */

@SpringBootApplication
@EnableEurekaClient
@EnableSwagger2Doc
@EnableHystrix
// 注意扫包范围
@EnableElasticsearchRepositories(basePackages = {"com.mano.mall.service.mapper"})
public class GoodApp {

    public static void main(String[] args) {
        SpringApplication.run(GoodApp.class,args);
    }
}
